import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "logo-music",
      component: require("@/pages/logo-music").default,
      children: [
        {
          path: "/",
          name: "index",
          component: require("@/pages/Index").default,
          children: [
            {
              path: "/",
              name: "search",
              component: require("@/pages/search/search").default
            },
            {
              path: "/recent",
              name: "recent",
              component: require("@/pages/recent/recent").default
            }
          ]
        },
        {
          path: "/lyric",
          name: "lyric",
          component: require("@/pages/lyric").default
        }
      ]
    },
    {
      path: "*",
      redirect: "/"
    }
  ]
});
